package com.cloud.mall.consume.service.impl;

import com.cloud.mall.consume.domain.ErrorLog;
import com.cloud.mall.consume.wechat.config.WechatConf;
import com.cloud.mall.log.mapper.SenderContactsMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.client.RestTemplate;

@Service
public class MongodbServiceImpl extends AbstractErrorService {

    @Autowired
    private SenderContactsMapper senderContactsMapper;
    @Autowired
    private RestTemplate restTemplate;
    @Autowired
    private WechatConf wechatConf;


    @Override
    protected SenderContactsMapper getSenderContactsMapper() {
        return senderContactsMapper;
    }

    @Override
    protected RestTemplate getRestTemplate() {
        return restTemplate;
    }

    @Override
    protected WechatConf getWechatConf() {
        return wechatConf;
    }

    @Override
    protected void saveError(ErrorLog errorLog) {
     //保存到mongondb
    }
}
